home *** CD-ROM | disk | FTP | other *** search
- ***Visual Basic4.0 supports conditional compilation. This allows you to easily include or exclude
- code. This ability is useful when you have one code source which must be compiled to create both
- Windows 16- and 32-bit applications. It is also useful when creating debug and retail versions
- of your application.
-
-
- ***Visual Basic4.0 supports system defined colors. Select ColorConstants in the Classes/Modules
- list box of the Object Browser. Colors in use will appear in the Methods/Properties box. By
- using these colors you can ensure that your application interface will be displayed according
- to user system color settings.
-
- ***You can nudge controls one pixel at a time in Visual Basicá4.0. Use the Ctrl+Arrow key
- combination to change the position, and the Shift+Arrow key combination to change the size.
- The Align to Grid option must be disabled in order for these commands to work.
-
- ***At design time you can size rows and columns in the DBGrid. Just right click on the DBGrid
- and select Edit from the shortcut menu.
-
- ***You can describe the methods and properties of your OLE Automation Servers in the Object
- for reference purposes. To add descriptions, select ObjectBrowser on the View menu. Click the
- correct options of the Classes/Modules and Methods/Properties lists in the ObjectBrowser
- window, and press the Options... button.
-
- ***Visual Basicá4.0 supports custom cursors. To display a custom icon, in the Properties window
- set the MousePointer property to 99-Custom. Then, also in the Properties window, set MouseIcon
- to the icon of your choice. If either of these properties is not accurately set, the default
- mouse pointer will be used.
-
- ***You should remove all unused Custom Controls and References from a project prior to using
- the SetupWizard. If unused Custom Controls and References are not removed, the SetupWizard
- will include these files. To remove Custom Controls from your project Toolbox, choose Custom
- Controls from the Tools menu, and click to clear the check box next to each unwanted control.
- To remove unused References, choose References from the Project menu and click to clear the
- check boxes of any unwanted References.
-
-
- ***It is possible to have errors in your code that do not show up when using the default
- "Compile on Demand" option in Visual Basicá4.0. As long as the code is never executed the
- error will not surface. You can easily force all code to be checked for errors by clicking
- Start with Full Compile from the Run menu.
-
- ***You can speed up Visual Basicá4.0 programs by eliminating as many dots as possible between
- objects and methods or properties. Each dot corresponds to one or more function calls. You can
- eliminate dots by setting intermediate object variables, and using the With statement and the
- For Each loop. You should also look out for default properties. The dot may not be visible when
- you use a default property, but the underlying function call remains.
-
-
- ***Have a large project? Get it up and running instantly with Background Project Load. This
- feature allows Visual Basicá4.0 to quickly load projects, forms and modules, so you can get
- to your code fast. Just choose Options on the Tools menu and click the Advanced tab. Under
- Project Load, click Background Project Load.
-
- ***Visual Basicá4.0 provides new functions that allow you to easily save and retrieve
- application settings. The application setting functions are GetSetting, GetAllSettings,
- SaveSetting, and DeleteSetting.
-
- ***You can step through your code as you write it without setting a breakpoint. Just click
- Step to Cursor on the Run menu. The application will suspend execution and enter break mode
- when it reaches the point where your cursor was last positioned.
-
-
- ***You can pass a control array in Visual Basicá4.0. Just declare your parameter "As Object,"
- and when calling the procedure pass the name of the control array without any parentheses.
-
- ***Typelibs give you instant access to the methods and properties of an object, including
- constants. And with Typelibs there's no additional baggage in your EXEáù you only compile in
- what you use. For more information on Typelibs and Visual Basic, see Article Q143258,
- "How to Create Constants and DLL Declarations in a Type Library."
-
-
- ***You can specify the indentation of items within your TreeView control by using the TreeView.
- Indentation property.
-
- ***A handy new feature in VB4 allows you to go back to your Last Position in the code editor.
- This is very useful when used in conjunction with the view Procedure Definition option. For
- example, if you are reading some code and see a call to a certain function, you can press
- Shift+F2 to immediately jump to the code for that function. To get back to the point where the
- function was called, simply press Ctrl+Shift+F2.
-
- ***The Visual Basic 4.0 project window supports drag-and-drop operations. For example, you can
- drag files from the Windows 95 explorer onto the project window to add them to the project.
-
- ***You can use Visual Basic to write Add-ins that extend the functionality of the Visual Basic
- 4.0 design environment.
-
-
- ***You can perform Remote Automation over the Internet (the Internet is simply another network
- running TCP/IP).
-
- ***For Remote Automation, various levels of Network Security are available through the Remote
- Automation Connection Manager utility.
-
- ***Controls added to a Visual Basic 4.0 form will inherit the Font properties of the form.
-
- ***Pass a null pointer for API parameters declared "Byval As String" by passing the
- vbNullString constant.
-